import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persistedState from 'pinia-plugin-persistedstate'
import NaiveUI from 'naive-ui'

import AppRoot from './AppRoot.vue'
import router from './router'

const app = createApp(AppRoot)
const pinia = createPinia()

pinia.use(persistedState)

app.use(pinia)
app.use(router)
app.use(NaiveUI)

app.mount('#app')
